﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.My.Profile.Language" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">

				<!--content strat-->
				<div id="MessagesBox" class="DisplayNone" style="display:none">
					<div class="MessagePanel4">
						<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;" alt=""/>
						<div id="MessageText"></div>
					</div>
				</div>
				<div class="title">
					<h1><%=GetText("M0003")%></h1>

				</div>
				<div>
					<ul class="sort_sel">
						<li class="unselATags first"><span><a href="/my/profile/personal.htm"><%=GetText("ST047")%></a></span></li>
						<li class="selATags"><span><a href="/my/profile/language.htm"><%=GetText("ST000")%></a></span></li>
						<%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsTeacher){%><li class="unselATags"><span><a href="/my/profile/teaching.htm"><%=GetText("ST133")%></a></span></li><%} %>
						<li class="unselATags"><span><a href="/my/profile/mycontact.htm"><%=GetText("ST030")%></a></span></li>
						<li class="unselATags"><span><a href="/my/profile/myphoto.htm"><%=GetText("ST195")%></a></span></li>

					</ul>
					<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Common">
						<div class="Center9001Content">
							<!--Stand content start-->
							<div class="setting_area">
								<h3><%=GetText("ST000")%></h3>
								<div class="margin20D">								
									<ul class="formlist">
										<li>
											<div class="item"><%=GetText("C0004")%></div>
											<div class="op">
											    <div>
													<select id="MotherTongue" class="select allhalf" name="MotherTongue"><option value=""><%=GetText("C0061")%>...</option><%=GetLanguageSelect(ULB.MotherTongue) %></select> <select id="MotherTongueLevel" disabled="disabled" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="3">3 - <%=GetText("C0021")%></option>
														<option value="4">4 - <%=GetText("C0022")%></option>
														<option value="5" selected="selected">5 - <%=GetText("C0023")%></option>
													</select>
													<span id="SMotherTongue" style="color: Red; display: none;" class="red10"><br /><%=GetText("UR023")%></span>													
												</div>												
												<div id="BL2" style="<%=ULB.MotherTongue2==""?"display:none":"" %>" class="margin15T">
													<select id="MT2" class="select allhalf"><option value=""><%=GetText("C0061")%>...</option><%=GetLanguageSelect(ULB.MotherTongue2)%></select> <select id="MTL2" class="select">
														<option value="" selected="selected"><%=GetText("C0018")%></option>
														<option value="3" <%=(ULB.MotherTongue2Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.MotherTongue2Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
														<option value="5" <%=(ULB.MotherTongue2Level=="5"?"selected=\"selected\"":"") %>>5 - <%=GetText("C0023")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(2,1)"><%=GetText("C0049")%></a>
												</div>
												<div id="BL3" style="<%=ULB.MotherTongue3==""?"display:none":"" %>" class="margin15T">
													<select id="MT3" class="select allhalf">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.MotherTongue3)%>
													</select> <select id="MTL3" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="3" <%=(ULB.MotherTongue3Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.MotherTongue3Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
														<option value="5" <%=(ULB.MotherTongue3Level=="5"?"selected=\"selected\"":"") %>>5 - <%=GetText("C0023")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(3,1)"><%=GetText("C0049")%></a>
												</div>
												<div id="BL4" style="<%=ULB.MotherTongue4==""?"display:none":"" %>" class="margin15T">
													<select id="MT4" class="select allhalf">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.MotherTongue4)%>
													</select> <select id="MTL4" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="3" <%=(ULB.MotherTongue4Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.MotherTongue4Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
														<option value="5" <%=(ULB.MotherTongue4Level=="5"?"selected=\"selected\"":"") %>>5 - <%=GetText("C0023")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(4,1)"><%=GetText("C0049")%></a>				
												</div>
												<div id="addBL" style="display:<%=(ULB.MotherTongue!=""&&ULB.MotherTongue4!=""&&ULB.MotherTongue2!=""&&ULB.MotherTongue3!="")?"none":"" %>"><p><a href="javascript:void(0);" onclick="Show(1)" ><%=GetText("TP101")%></a></p></div></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("C0006")%></div>
											<div class="op">
											    <div>
													<select id="TargetLanguage" class="select allhalf" name="TargetLanguage">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.TargetLanguage) %>
													</select>
													<select id="TargetLanguageLevel" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="1" <%=(ULB.TargetLanguageLevel=="1"?"selected=\"selected\"":"") %>>1 - <%=GetText("C0019")%></option>
														<option value="2" <%=(ULB.TargetLanguageLevel=="2"?"selected=\"selected\"":"") %>>2 - <%=GetText("C0020")%></option>
														<option value="3" <%=(ULB.TargetLanguageLevel=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.TargetLanguageLevel=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
													</select>
												</div>
												<div id="LL2" style="<%=ULB.TargetLanguage2==""?"display:none":"" %>" class="margin15T">
													<select id="TL2" class="select allhalf">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.TargetLanguage2)%>
													</select>
													<select id="TLL2" class="select">
														<option value="" selected="selected"><%=GetText("C0018")%></option>
														<option value="1" <%=(ULB.TargetLanguage2Level=="1"?"selected=\"selected\"":"") %>>1 - <%=GetText("C0019")%></option>
														<option value="2" <%=(ULB.TargetLanguage2Level=="2"?"selected=\"selected\"":"") %>>2 - <%=GetText("C0020")%></option>
														<option value="3" <%=(ULB.TargetLanguage2Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.TargetLanguage2Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(2,2)"><%=GetText("C0049")%></a>
												</div>
												<div id="LL3" style="<%=ULB.TargetLanguage3==""?"display:none":"" %>" class="margin15T">
													<select id="TL3" class="select allhalf">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.TargetLanguage3)%>
													</select>
													<select id="TLL3" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="1" <%=(ULB.TargetLanguage3Level=="1"?"selected=\"selected\"":"") %>>1 - <%=GetText("C0019")%></option>
														<option value="2" <%=(ULB.TargetLanguage3Level=="2"?"selected=\"selected\"":"") %>>2 - <%=GetText("C0020")%></option>
														<option value="3" <%=(ULB.TargetLanguage3Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.TargetLanguage3Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(3,2)"><%=GetText("C0049")%></a>
												</div>
												<div id="LL4" style="<%=ULB.TargetLanguage4==""?"display:none":"" %>" class="margin15T">
													<select id="TL4" class="select allhalf">
														<option value=""><%=GetText("C0061")%>...</option>
														<%=GetLanguageSelect(ULB.TargetLanguage4)%>
													</select>
													<select id="TLL4" class="select">
														<option value=""><%=GetText("C0018")%></option>
														<option value="1" <%=(ULB.TargetLanguage4Level=="1"?"selected=\"selected\"":"") %>>1 - <%=GetText("C0019")%></option>
														<option value="2" <%=(ULB.TargetLanguage4Level=="2"?"selected=\"selected\"":"") %>>2 - <%=GetText("C0020")%></option>
														<option value="3" <%=(ULB.TargetLanguage4Level=="3"?"selected=\"selected\"":"") %>>3 - <%=GetText("C0021")%></option>
														<option value="4" <%=(ULB.TargetLanguage4Level=="4"?"selected=\"selected\"":"") %>>4 - <%=GetText("C0022")%></option>
													</select>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="Del(4,2)"><%=GetText("C0049")%></a>													
												</div>
												<div id="addLL" style="display:<%=(ULB.TargetLanguage!=""&&ULB.TargetLanguage4!=""&&ULB.TargetLanguage2!=""&&ULB.TargetLanguage3!="")?"none":"" %>">
													<p><a href="javascript:void(0);" onclick="Show(2)" ><%=GetText("TP101")%></a></p>
												</div></div><div class="clear"></div>
										</li>
										<li>
											<div class="item">&nbsp;</div>
											<div class="op"><input id="btnSave" class="button" value="Save" type="button" onClick="SaveLan()"/>&nbsp;&nbsp;<input id="Button1" type="button" class="buttong" value="Cancel" onClick="javascript:top.location.reload();"/></div><div class="clear"></div>
										</li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var MessageTextS="<%=GetText("C1002")%>";
var MessageTextF="<%=GetText("C1006")%>"; 
var MessageImageS = "/images/ico_info.gif";
var MessageImageF = "/images/ico_info.gif";
</script>